<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript">
			window.onload = function() {
				var inputs = document.getElementsByTagName("input");
				console.log(inputs);
				console.log(inputs[1]);
			}
		</script>
	</head>
	<body>
		<input type="text" id="userName" value="gao" />
		<input type="text" id="userEmail" value="gao@163.com" />
	</body>
</html>
